org.eclipse.vtp.framework.engine.http
Class HttpUtils

java.lang.Object
  extended by org.eclipse.vtp.framework.engine.http.HttpUtils

public class HttpUtils
extends java.lang.Object

Utilities for the HTTP connector system.

Author:
Lonnie Pryor

Constructor Summary
HttpUtils()
           
 
Method Summary
static java.lang.String normalizePath(java.lang.String path)
          Normalizes the supplied path so that it always starts with '/', never contains consecutive instances of '/', and never ends with '/' except for the case where the normalized path is "/".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpUtils

public HttpUtils()
Method Detail

normalizePath

public static java.lang.String normalizePath(java.lang.String path)
Normalizes the supplied path so that it always starts with '/', never contains consecutive instances of '/', and never ends with '/' except for the case where the normalized path is "/".

Parameters:
path - The path to normalize. If null or empty, "/" will be returned.
Returns:
A normalized version of the supplied path.